package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.ParenteralNutritionPlan;

import java.util.List;

public interface ParenteralNutritionPlanService {
    void add(ParenteralNutritionPlan parenteralNutritionPlan);

    void update(ParenteralNutritionPlan parenteralNutritionPlan);

    void delete(Integer id);
    void deleteByNutritionPlanId(Integer nutritionPlanId);
    ParenteralNutritionPlan findById(Integer id);

    List<ParenteralNutritionPlan> findAll();

    Page<ParenteralNutritionPlan> search(String search, int page, int size);
    Page<ParenteralNutritionPlan> searchByNutritionPlanId(Integer nutritionPlanId,String search, int page, int size);
}
